<script type="text/javascript">
	
	function batal(){
		document.location.href = '<?=base_url().'index.php/master_parawaba'?>';
	}
	
</script>

	<?php 
		if(validation_errors())
		{
	?>
			<ul class="message error grid_12">
				<li><?=validation_errors()?></li>
				<li class="close-bt"></li>
			</ul>	
	<?php
		} 
	?>

<section class="grid_12">
	<div class="block-border">
		<?php
			$attributes = array('name' => 'form1', 'id' => 'form1', 'class'=>'block-content form');
			echo form_open('master_parawaba/process_update', $attributes);
		?>
			<h1>Master > Edit Data master_parawaba</h1>
			
			<fieldset>
				
				
				<div class="columns">
					<p class="colx2-left">
						<label for="complex-en-url">Kode master_parawaba :</label>
						<input type="hidden" name="id"  value="<?=$id?>">
					</p>
					<p class="colx2-right">
						<label for="complex-en-url">Nama (*) :</label>
						<span class="relative">
							<? 
								if (form_error('nama') != null)
								{
									echo '<input type="text" name="nama" id="nama" value="'.set_value('nama').'" class="setengah-width">';
								}else
								{
									echo '<input type="text" name="nama" id="nama" value="'.$nama.'" class="setengah-width">';
								}
							?>
						</span>
					</p>
				</div>
				<div class="columns">
					<p class="colx2-left">
						<label for="complex-en-url">Kota :</label>
						<span class="relative">
							<? 
								if (form_error('kota') != null)
								{
									echo '<input type="text" name="kota" id="kota" value="'.set_value('kota').'" class="setengah-width">';
								}else
								{
									echo '<input type="text" name="kota" id="kota" value="'.$kota.'" class="setengah-width">';
								}
							?>
						</span>
					</p>
					<p class="colx2-right">
						<label for="complex-en-url">Status BHP :</label>
						<span class="relative">
							<? 
								if (form_error('status_bhp') != null)
								{
									echo '<input type="text" name="status_bhp" id="status_bhp" value="'.set_value('status_bhp').'" class="setengah-width">';
								}else
								{
									echo '<input type="text" name="status_bhp" id="status_bhp" value="'.$status_bhp.'" class="setengah-width">';
								}
							?>
						</span>
					</p>
				</div>				<p><i> Field yang diberi tanda (*) harus di isi ! </i></p>
				
			</fieldset>
				
			<div id="tab-settings" class="tabs-content">
					<button type="submit"><img src="<?=base_url()?>asset/admin/images/icons/fugue/tick-circle.png" width="16" height="16"> Simpan</button>
					<button type="button" onclick="javascript:batal();" class="red">Batal</button> 	
			</div>
			
		</form>
	</div>
</section>